package com.ysu.zyw.dao;

import com.ysu.zyw.modal.po.BlogArticleEntity;
import com.ysu.zyw.modal.vo.BlogArticlePageVo;
import com.ysu.zyw.modal.vo.BlogMainPageArticle;
import com.ysu.zyw.modal.vo.BlogManagePageArticle;
import com.ysu.zyw.modal.vo.PageAndCategory;

import java.util.List;

/**
 * Created by zhang_yao_wu1993 on 15/4/27.
 *
 * @author by Zerur
 */
public interface BlogArticleMapper {
    public void insertBlogArticleEntity(BlogArticleEntity blogArticleEntity);
    public Integer selectBlogArticleCount();
    public List<BlogMainPageArticle> selectBlogMainPageArticleByPageAndCategory(PageAndCategory pageAndCategory);
    public List<BlogMainPageArticle> selectAllBlogMainPageArticleByPage(PageAndCategory pageAndCategory);
    public BlogArticlePageVo selectBlogArticlePageVo(String uuid);
    public List<BlogManagePageArticle> selectBlogManagePageArticle();
    public void deleteBlogArticleEntity(String uuid);
    public Integer selectArticleCountByCategoryId(int id);
    public void updateArticleClickRateAddOne(String uuid);
    public Integer selectBlogArticleCountByCategoryId(Integer id);
}
